<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="/navbar::header(增加电影)">
</head>
<body class="bj1">
<div class="container">
    <br>
    <br>
    <br>
    <br>
    <form enctype="multipart/form-data" method="POST" style="margin-left: 15%;border-radius: 2px 2px 2px 2px;width: 800px;height: 550px;background-color: rgba(0, 0, 0, 0.1)" th:action="@{/admin/movie/save}">
        <br>
        <h5 style="margin-left: 45%;margin-top: 20px">新增电影</h5>
        <p th:text="${msg2}"></p>
        <div class="form-group" style="width: 90%;margin-left: 5%">
                <input class="form-control" placeholder="电影名称" th:name="name" th:type="text" >
        </div>
        <br>
        <div class="form-group" style="width: 90%;margin-left: 5%">
                <select class="form-control" th:name="types" >
                    <option th:value="科幻">科幻</option>
                    <option th:value="爱情">爱情</option>
                    <option th:value="悬疑">悬疑</option>
                    <option th:value="动作">动作</option>
                    <option th:value="文艺">文艺</option>
                    <option th:value="搞笑">搞笑</option>
                    <option th:value="剧情">剧情</option>
                    <option th:value="动画">动画</option>
                    <option th:value="恐怖">恐怖</option>
                    <option th:value="犯罪">犯罪</option>
                </select>
            </div>
        <br>
        <div class="form-group" style="width: 90%;margin-left: 5%">
                <textarea class="form-control" placeholder="输入内容描述" th:name="content" th:type="text"></textarea>
            </div>
        <br>
        <div class="form-group" style="width: 90%;margin-left: 5%">
                <input class="form-control" placeholder="时长" th:name="duration" th:type="text" >
            </div>
        <br>
        <div class="form-group" style="width: 90%;margin-left: 5%">
                <select class="form-control" th:name="region" >
                    <option th:value="大陆">大陆</option>
                    <option th:value="香港">香港</option>
                    <option th:value="日本">日本</option>
                    <option th:value="美国">美国</option>

                </select>
            </div>
        <br>
        <div class="form-group" style="width: 90%;margin-left: 5%">
                <input class="form-control" placeholder="价格" th:name="price" th:type="text" >
            </div>
        <br>
        <div class="form-group" style="width: 90%;margin-left: 5%">
                <input class="form-control" placeholder="上线时间" th:name="onlin" th:type="date" >
            </div>
        <br>
        <div class="form-group" style="width: 90%;margin-left: 5%">
            <input class="form-control" th:name="file1" th:type="file">
        </div>
        <br>
        <br>
        <button class="btn btn-info" style="margin-left: 26%" type="submit">新建电影</button>
        <a class="btn btn-danger" style="margin-left: 25%" th:href="@{/admin/movie}">取消新建</a>
    </form>
</div>
</body>
</html>